package com.hzf.workman.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WorkmanBid implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 关联业主需求表
     *
     * @mbg.generated
     */
    private Integer demandId;

    /**
     * 投标工人关联UserID
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 投标金额
     *
     * @mbg.generated
     */
    private Long bidMoney;

    /**
     * 自我简介
     *
     * @mbg.generated
     */
    private String bidContent;

    /**
     * 预计完成天数
     *
     * @mbg.generated
     */
    private Integer bidDays;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createDate;

    /**
     * 用户最近修改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 是否选中
     *
     * @mbg.generated
     */
    private Integer state;

    private Double km;

    private WorkmanManinfo workmanWorkmanManinfo;
    public Long callPhone;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDemandId() {
        return demandId;
    }

    public void setDemandId(Integer demandId) {
        this.demandId = demandId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Long getBidMoney() {
        return bidMoney;
    }

    public void setBidMoney(Long bidMoney) {
        this.bidMoney = bidMoney;
    }

    public String getBidContent() {
        return bidContent;
    }

    public void setBidContent(String bidContent) {
        this.bidContent = bidContent;
    }

    public Integer getBidDays() {
        return bidDays;
    }

    public void setBidDays(Integer bidDays) {
        this.bidDays = bidDays;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Double getKm() {
        return km;
    }

    public void setKm(Double km) {
        this.km = km;
    }

    public WorkmanManinfo getWorkmanManinfo() {
        return workmanWorkmanManinfo;
    }

    public void setWorkmanManinfo(WorkmanManinfo workmanWorkmanManinfo) {
        this.workmanWorkmanManinfo = workmanWorkmanManinfo;
    }

    public Long getCallPhone() {
        return callPhone;
    }

    public void setCallPhone(Long callPhone) {
        this.callPhone = callPhone;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", demandId=").append(demandId);
        sb.append(", userId=").append(userId);
        sb.append(", bidMoney=").append(bidMoney);
        sb.append(", bidContent=").append(bidContent);
        sb.append(", bidDays=").append(bidDays);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", state=").append(state);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WorkmanBid other = (WorkmanBid) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDemandId() == null ? other.getDemandId() == null : this.getDemandId().equals(other.getDemandId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getBidMoney() == null ? other.getBidMoney() == null : this.getBidMoney().equals(other.getBidMoney()))
            && (this.getBidContent() == null ? other.getBidContent() == null : this.getBidContent().equals(other.getBidContent()))
            && (this.getBidDays() == null ? other.getBidDays() == null : this.getBidDays().equals(other.getBidDays()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDemandId() == null) ? 0 : getDemandId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getBidMoney() == null) ? 0 : getBidMoney().hashCode());
        result = prime * result + ((getBidContent() == null) ? 0 : getBidContent().hashCode());
        result = prime * result + ((getBidDays() == null) ? 0 : getBidDays().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        return result;
    }
}